﻿<?
#     Xepec.ru - социальная сеть
#     Copyright (C) 2008  Fedorchenko Alexander
#
#     This program is free software: you can redistribute it and/or modify
#     it under the terms of the GNU Affero General Public License as
#     published by the Free Software Foundation, either version 3 of the
#     License, or (at your option) any later version.
#
#     This program is distributed in the hope that it will be useful,
#     but WITHOUT ANY WARRANTY; without even the implied warranty of
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#     GNU Affero General Public License for more details.
#
#     You should have received a copy of the GNU Affero General Public License
#     along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
#     Autor: Fedorchenko Alexander
#     Mail: sos20@list.ru
#     Date: 17/01/2009
#
#
include ("config.php");
include_once ("core.php");


$uname_get=$_GET['autor'];
//$uname = uname_get($uname_get);
if (isset($_GET["autor"]))
{
	if ($_GET["autor"] !== $auth_id) $masha=1;
}
else
{
	$masha=0;
	$uname_get = $auth_id;
}
//$uname = uname_get($uname_get);


if (isset($auth_id))
{
	//$uname_arr = uname_get($id_cook); # массив юсера который запрашивает инфу тоесть своей информации
	//$title = $uname['name'];
}
if (isset($index_and_no_login) && $index_and_no_login == TRUE)
{
	$sh_menu = FALSE;
	$jabber = FALSE;
	$rozisk = FALSE;
}



echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"ru\" lang=\"ru\">
<head>
<title>$SITE_NAME :: $title</title>
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />
<meta name=\"autor\" content=\"Fedorchenko Alexander\" />
<meta name=\"Copyright\" content=\"Fedorchenko Alexander\" />
<meta name=\"Keywords\" content=\"Социальная сеть xepec xepec.ru ХЕРЕС херес друзья подруги знакомства\" />


<link rel=\"stylesheet\" type=\"text/css\" href=\"/style/style.css\" media=\"screen\" title=\"style (screen)\" />
<!--script type=\"text/javascript\" src=\"/js/username.js\"></script-->";

if (!isset($jabber) or $jabber != FALSE)
{echo "
<script type=\"text/javascript\" src=\"".$MESS_DIR."config.js\"></script>
    <script type=\"text/javascript\" src=\"".$MESS_DIR."shared.js\"></script>
    <script type=\"text/javascript\" src=\"".$MESS_DIR."browsercheck.js\"></script>
    <script type=\"text/javascript\" src=\"".$MESS_DIR."sounds.js\"></script>
    <script type=\"text/javascript\" src=\"".$MESS_DIR."statusLed.js\"></script>

<!-- JabberConnection -->
    <script type=\"text/javascript\" src=\"".$MESS_DIR."jsjac.js\"></script>

<!-- Debugger -->
    <script type=\"text/javascript\" src=\"".$MESS_DIR."Debugger.js\"></script>

    <script type=\"text/javascript\" src=\"".$MESS_DIR."test_jwchat.js\"></script>




     <script type=\"text/javascript\" src=\"".$MESS_DIR."roster.js\"></script>";
}
echo"
</head>
<body>
	<div id=\"preload\"></div>
	<div id=\"header\">";
echo "
		<h1>".$_COOKIE["xepec_nic"]."<span>@$SITE_NAME2</span></h1>
		<big>$SITE_NAME</big>";?>
	</div>
	<div id="menu">
		<?
		if(!isset($sh_menu) or $sh_menu != FALSE)
		{
			if(isset($menu))
				echo $menu;
			else
				echo"
					  <ul>
					    <li><a href=\"/username/index.pl?uname=".$auth_id."\">username</a></li>
					    <li><a href=\"/groups/\">Проекты</a></li>
					    <li><a href=\"/litera/index.php?autor=".$auth_id."\">Литература</a></li>
					    <li><a href=\"/video/index.pl?uname=".$auth_id."\">Кино</a></li>
					    <li><a id=\"now\" href=\"/music/index.pl\">Музыка</a></li>
					    <li><a href=\"/picture/index.php?uname=".$auth_id."\">Искуство</a></li>
					    <li><a href=\"#\">Соль</a></li>

					  </ul>"; 
		}
		?>
	</div>
	<div id="main">
		<div id="container">
			<div id="subnav">
			        <? echo $subnav;?>
			</div>
			<!--проебаные события группы итд-->
			<div id="extras">		
					<h2>Пропущено</h2>
					<ul>
						<li>
							<p>Добавлен <a href="../search/search_username.pl">поиск пользователей</a></p>
						</li>
						<li>
							<p><a href="http://sos20.livejournal.com/4823.html">График</a> работ по выпуску 0.2</p>
						</li>
						<li>
							<p>Состоялся релиз версии 0.1, у нас не большой перерыв и дальше, в гору)</p>
						</li>
					</ul>
					<hr />
					<p><a href="http://www.openwebdesign.org/">Open Web Design</a><br />
					<a rel="nofollow" href="http://validator.w3.org/check?uri=referer">XHTML 1.0 Strict</a><br />
					<a rel="nofollow" href="http://jigsaw.w3.org/css-validator/check/referer">Valid CSS</a> </p>
					<p>
						<a href="http://jigsaw.w3.org/css-validator/check/referer">
							<img style="border:0;width:88px;height:31px"
								src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
								alt="Правильный CSS!" />
						</a>
						<a href="http://validator.w3.org/check?uri=referer">
							<img style="border:0;width:88px;height:31px"
							src="http://www.w3.org/Icons/valid-xhtml10-blue"
							alt="Правильный XHTML 1.0!" height="31" width="88" />
						</a>
					</p>
				</div>
			
			<div id="content" ><!-- контент -->
				<table border="0" width="100%">
					<tr>
						<td>
						<? echo $content;?>
						
						</td>
					</tr>

					
				</table>
				<div id="footer">
					v 0.1-&beta;
				</div>
			</div><!--content-->
		</div><!--container-->
	</div><!--main-->
</body>
</html>
